# knowledge/vector/__init__.py

"""
知识库向量存储管理模块
负责向量索引的创建、更新和检索
"""

from knowledge.vector.kb_vector_store_manager import KBVectorStoreManager

__all__ = [
    "KBVectorStoreManager",
]

class VectorStoreError(Exception):
    """向量存储异常"""
    pass

class IndexBuildError(Exception):
    """索引构建异常"""
    pass

class CollectionNotFoundError(Exception):
    """集合未找到异常"""
    pass

# 向量存储配置
VECTOR_STORE_CONFIG = {
    "default_collection": "enterprise_knowledge",
    "default_db_path": "./knowledge_db",
    "similarity_metric": "cosine",
    "default_top_k": 5
}

# 导出常量和异常
__all__.extend([
    "VectorStoreError",
    "IndexBuildError",
    "CollectionNotFoundError", 
    "VECTOR_STORE_CONFIG",
])

# print("✅ 知识库向量存储模块已加载")
